package com.jack.lib.core.ui

import androidx.appcompat.app.AppCompatActivity
import com.kongzue.dialog.v3.WaitDialog


/**
 * author : chong.huang
 * create : 8/7/21
 * desc   :
 */
object JWindow {


    fun toastE(msg: Any?) {

    }

    fun toastW(msg: Any?) {

    }

    fun toastS(msg: Any?) {

    }

    fun showLoading(activity: AppCompatActivity) {
        WaitDialog.show(activity, "")
    }

    fun hideLoading() {
        WaitDialog.dismiss()
    }

    fun showTip(type: JToast.Type, message: String?) {
        JToast.show(type, message)
    }
}